package o;

import android.content.SharedPreferences.Editor;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import java.util.Set;

public final class euf extends BaseSharedPref {
    private static volatile euf ˋ = null;
    private boolean ˎ;
    private int ॱ = -1;

    private euf() {
    }

    public static synchronized euf ˎ() {
        euf o_euf;
        synchronized (euf.class) {
            if (ˋ == null) {
                ˋ = new euf();
            }
            o_euf = ˋ;
        }
        return o_euf;
    }

    public boolean ˋ() {
        return this.ˏ.getBoolean("appSynFlag", false);
    }

    public void ˊ(boolean z) {
        Editor edit = this.ˏ.edit();
        edit.putBoolean("appSynFlag", z);
        edit.commit();
    }

    public boolean ˊ() {
        try {
            this.ˎ = this.ˏ.getBoolean("cleanMemFlag", true);
            return this.ˎ;
        } catch (Throwable e) {
            Logger.ˋ("SettingDB", "getCleanMemFlag error", e);
            this.ˏ.edit().remove("cleanMemFlag");
            ॱ(true);
            return true;
        }
    }

    public void ॱ(boolean z) {
        this.ˎ = z;
        Editor edit = this.ˏ.edit();
        edit.putBoolean("cleanMemFlag", z);
        edit.commit();
    }

    public boolean ॱ() {
        return this.ˏ.getBoolean("allow_get_nickname", false);
    }

    public void ˏ(boolean z) {
        Editor edit = this.ˏ.edit();
        edit.putBoolean("allow_get_nickname", z);
        edit.commit();
    }

    public boolean ˏ() {
        if (!diu.ˊ().ˎ()) {
            Logger.ˎ("SettingDB", "has not agree protocol");
            return false;
        } else if (eqp.ᐝ()) {
            return this.ˏ.getBoolean("pushsmsFlag", true);
        } else {
            return UserSession.getInstance().isUserPushOpen();
        }
    }

    public void ˎ(boolean z) {
        Editor edit = this.ˏ.edit();
        edit.putBoolean("pushsmsFlag", z);
        edit.commit();
    }

    public int ʽ() {
        return this.ˏ.getInt("my_wish_flag", 0);
    }

    public void ˋ(int i) {
        this.ˏ.edit().putInt("my_wish_flag", i).commit();
    }

    public long ʼ() {
        long j = 0;
        try {
            j = this.ˏ.getLong("lastTime_recommendContent", 0);
        } catch (ClassCastException e) {
            this.ˏ.edit().remove("lastTime_recommendContent").commit();
        }
        return j;
    }

    public Set<String> ᐝ() {
        Set<String> set = null;
        try {
            set = this.ˏ.getStringSet("deeplink_jump_whitelist", null);
        } catch (ClassCastException e) {
            this.ˏ.edit().remove("deeplink_jump_whitelist").commit();
        }
        return set;
    }

    public void ˋ(Set<String> set) {
        this.ˏ.edit().putStringSet("deeplink_jump_whitelist", set).commit();
    }

    public void ॱॱ() {
        this.ॱ = -1;
        this.ˏ.edit().remove("button_status");
    }
}
